p = Density
m = mass
V = volume
Density is a measure of how tightly matter is packed together. It is defined as the mass per unit volume. The symbol for density is ρ (rho), and the SI unit of density is kilograms per cubic meter (kg/m³).
The density of a substance can be calculated by dividing its mass by its volume.
The mass of an object is, for example, 4 kg and its volume is 2 m3.
So
4/2=2
The density of the object is therefore 2 kg per m3.